<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Video_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-video_image" data-rule="required" class="form-control" size="50" name="row[video_image]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-video_image" class="btn btn-danger plupload" data-input-id="c-video_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-video_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-video_image" class="btn btn-primary fachoose" data-input-id="c-video_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-video_image"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-video_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Url')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-url" data-rule="required" class="form-control" name="row[url]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('class')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[class]',$class,null,['class'=>'form-control', 'required'=>''])}
        </div>
    </div>
    <div class="form-group" data-field="tags">
        <label for="c-tags" class="control-label col-xs-12 col-sm-2">TAG</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tags" data-rule="" class="form-control" placeholder="输入后空格确认"   name="row[tags]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('所属专题')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[belong]',$belong,null,['class'=>'form-control', 'required'=>''])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('所属地区')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-area" class="form-control selectpage" data-source="Category/selectpage?searchField=type&q_word=area" data-params='{"custom[type]":"area"}' data-field="name"   name="row[area]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Create_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-create_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[create_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">添加评论</label>-->
<!--        <div class="col-xs-12 col-sm-9">-->
<!--            <dl class="fieldlist skuAdd" data-name="skus" data-template="testtpl">-->
<!--                <dd>-->
<!--                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i>-->
<!--                    {:__('Append')}</a></dd>-->
<!--            </dl>-->
<!--            <div>-->
<!--            </div>-->
<!--            &lt;!&ndash;定义模板&ndash;&gt;-->
<!--            <script type="text/javascript" id="testtpl">-->
<!--				<dd class="form-inline">-->
<!--					<input type="text" name="comments[]" class="form-control" value="" size="10" placeholder="评论内容">-->
<!--					</span>-->
<!--					</div>-->
<!--					<span class="msg-box n-right" for="t-image"></span>-->
<!--					</div>-->
<!--					<span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span> <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>-->
<!--				</dd>-->
<!--            </script>-->
<!--            &lt;!&ndash;添加规格结束&ndash;&gt;-->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
<style>
    .fieldlist dd input:first-child {
        width: 368px;
    }

</style>
<style data-render="darktheme">
    body.darktheme .tagsinput {
        background-color: #3c3e3d;
        border-color: #444;
        color: #ccc;
    }
</style>
